from selenium.webdriver import Firefox
from selenium.webdriver.common.by import By

# 创建浏览器对象
web = Firefox(executable_path=r'C:\Users\薛国鹏\.wdm\drivers\geckodriver\win64\v0.33.0\geckodriver.exe')

url = 'https://www.baidu.com/'

# 打开url
web.get(url)

# 找到某元素
kw_input = web.find_element(by=By.ID,value='kw')
# 往输入框里写东西
kw_input.send_keys('华南师范大学软件学院')
# 模拟点击
web.find_element(by=By.ID,value='su').click()
